<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
</head>
<body>
<h1>用户登录</h1>
<hr>
<span th:text="${msg}" style="color: red;"></span>
<form th:action="@{/login}">
    <p><label>用户名：</label><input type="text" name="username"></p>
    <p><label>密码：</label><input type="password" name="password"></p>
    <p><input type="submit"></p>
</form>
</body>
</html>